<?php
/**
 * Created by PhpStorm.
 * User: long
 * Date: 2020/5/2
 * Time: 12:15 PM
 */

namespace App\Transformers;

class ArrayTransformer extends BaseTransformer
{
    function transform($data) : array
    {
        return is_array($data) ? $data : $data->toArray();
    }
}
